import { ref, onMounted } from 'vue'
import { getBannerApi } from '@/apis/Home'

export function useBanner() {
  const BannerList = ref([])
  const getBannerList = async () => {
    const res = await getBannerApi({
      distributionSite: '2',
    })
    BannerList.value = res.result
  }
  onMounted(() => getBannerList())
  return {
    BannerList,
  }
}
